package com.firebird.app.fekpsl.bean

import com.squareup.moshi.Json
import org.litepal.crud.LitePalSupport
import java.io.Serializable
//文章
data class ArticleResponseBody(
        @Json(name = "curPage") val curPage: Int,
        @Json(name = "datas") var datas: MutableList<Article>,
        @Json(name = "offset") val offset: Int,
        @Json(name = "over") val over: Boolean,
        @Json(name = "pageCount") val pageCount: Int,
        @Json(name = "size") val size: Int,
        @Json(name = "total") val total: Int
)

//文章
data class Article(
        @Json(name = "apk_link") val apk_link: String,
        @Json(name = "audit") val audit: Int,
        @Json(name = "author") val author: String,
        @Json(name = "chapter_id") val chapter_id: Int,
        @Json(name = "chapter_name") val chapter_name: String,
        @Json(name = "item_collect") var item_collect: Boolean,
        @Json(name = "course_id") val course_id: Int,
        @Json(name = "item_desc") val item_desc: String,
        @Json(name = "envelope_pic") val envelope_pic: String,
        @Json(name = "fresh") val fresh: Boolean,
        @Json(name = "id") val id: Int,
        @Json(name = "item_link") val item_link: String,
        @Json(name = "nice_date") val nice_date: String,
        @Json(name = "nice_share_date") val nice_share_date: String,
        @Json(name = "origin") val origin: String,
        @Json(name = "prefix") val prefix: String,
        @Json(name = "project_link") val project_link: String,
        @Json(name = "publish_time") val publish_time: Long,
        @Json(name = "share_date") val share_date: String,
        @Json(name = "share_user") val share_user: String,
        @Json(name = "super_chapter_id") val super_chapter_id: Int,
        @Json(name = "super_chapter_name") val super_chapter_name: String,
        @Json(name = "tags") val tags: MutableList<Tag>,
        @Json(name = "title") val title: String,
        @Json(name = "item_type") val item_type: Int,
        @Json(name = "user_id") val user_id: Int,
        @Json(name = "visible") val visible: Int,
        @Json(name = "zan") val zan: Int,
        @Json(name = "top") var top: String
)
data class Tag(
        @Json(name = "name") val name: String,
        @Json(name = "url") val url: String
)

data class CollectionArticle(
        @Json(name = "author") val author: String,
        @Json(name = "chapterId") val chapterId: Int,
        @Json(name = "chapterName") val chapterName: String,
        @Json(name = "courseId") val courseId: Int,
        @Json(name = "desc") val desc: String,
        @Json(name = "envelopePic") val envelopePic: String,
        @Json(name = "id") val id: Int,
        @Json(name = "link") val link: String,
        @Json(name = "niceDate") val niceDate: String,
        @Json(name = "origin") val origin: String,
        @Json(name = "originId") val originId: Int,
        @Json(name = "publishTime") val publishTime: Long,
        @Json(name = "title") val title: String,
        @Json(name = "userId") val userId: Int,
        @Json(name = "visible") val visible: Int,
        @Json(name = "zan") val zan: Int
)
// 我的分享
data class ShareResponseBody(
        val coinInfo: CoinInfoBean,
        val shareArticles: ArticleResponseBody
)
